﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly="Lucid.ESA.ClientDataSystem.Domain" namespace="Lucid.ESA.ClientDataSystem.Domain.Entities">
  <class name="Contact" table="`Contact`">
    <id name="Id" column="`Id`" type="long">
      <generator class="identity" />
    </id>
    <property name="Title" column="`Title`" />
    <property name="Forename" column="`Forename`" />
    <property name="Surname" column="`Surname`" />
    <property name="EmailAddress" column="`EmailAddress`" />
    <property name="TelephoneNumber" column="`TelephoneNumber`" />
    <property name="Deleted" column="`Deleted`" />
    <many-to-one name="Client" column="`ClientId`" cascade="all" not-null="true" />
  </class>
</hibernate-mapping>